package sh.wn36.vehiclemanage.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sh.wn36.vehiclemanage.util.Result;


@Api(value = "用户登录")
@RestController
@RequestMapping("/user")
@CrossOrigin
public class LoginController {



//    @RequestMapping("/login")
//    public Result login() {
//        return Result.OK().data("token", "123456");
//    }
//
//    @RequestMapping("/info")
//    public Result info() {
//        return Result.OK().data("roles", "admin").data("name", "admin").data("avatar", "https://k15-66.oss-cn-shanghai.aliyuncs.com/2021/04/22/242A20C1BE7B4EE99B68BFA6BB3FEF01file.png");
//    }
}
